import type { loginParams } from '@/types/login'
import { http } from '@/utils/http'

// 登录获取Token
export const getLoginAPI = (data:loginParams) => {
  return http({
    method: 'POST',
    url: '/admin-api/system/auth/login',
    data
  })
}

// 系统相关  角色
export const getSysUserRolesAPI = (data:any) => {
  return http({
    method: 'POST',
    url: '/sys/userRoles',
    data
  })
}

// 社交快捷登录
export const getSocialLoginAPI = (data:any) => {
  return http({
    method: 'POST',
    url: '/admin-api/system/auth/wx-mini-app-login',
    data
  })
}
//获取用户分页列表
export const getUserAPI = (data: any)=>{
  return http({
    method: 'GET',
    url: '/admin-api/system/user/page',
    data,
  })
}
